﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Home_EditCategory : System.Web.UI.Page
{
    public CategoryAdapter cateAdap;
    public UserEntity currentUser;
    protected void Page_Load(object sender, EventArgs e)
    {
        //Check login
        currentUser = UserManager.Instance.Getuser();
        if (!currentUser.isLogin)
            Response.Redirect("~/Login.aspx");

        cateAdap = new CategoryAdapter();
        ListCategory1.listCategory = cateAdap.getListCategories();
    }
}